{% extends 'base.html' %}
<!-- 用base.html作为模板 -->
{% block content %}
<h1>{% block title%}{{post['title']}}{% endblock %}</h1>
<span class="badge badge-primary">{{post['created']}}</span>
<p>{{post['content']}}</p>
<hr>
<form action="{{url_for('delete',post_id=post['id'])}}" method="POST">
    <input type="submit" value="删除" class="btn btn-danger btn_sm" onclick="return confirm('是否确定删除？')">
</form>
{% endblock %}
